package com.hnucm.onlinealgstudy.dao;

import com.hnucm.onlinealgstudy.pojo.Recommend;
import com.hnucm.onlinealgstudy.pojo.StudiedAlg;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AlgorithmMapper {
    // 查找推荐算法
    public List<Recommend> getRecommendedList();
    // 算法浏览量加一
    void addViewNum(Integer id);
    // 添加已学算法
    void addStudiedAlg(StudiedAlg studiedAlg);
    // 获取用户已学算法
    public List<StudiedAlg> getStudiedAlgList(String user_name);
}
